{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
        案件信息
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-5">
        <tbody>
        <tr class="text-c">
            <th>案件性质</th>
            <td>{$vo.nature}</td>
            <th>分类</th>
            <td>{$vo.nature}</td>
            <th>区域编号</th>
            <td>{$vo.region}</td>
            <th>报案人</th>
            <td>{$vo.from_user}</td>
            <th>报案时间</th>
            <td>{:date('Y-m-d H:i',$vo.from_time)}</td>
        </tr>
        <tr class="text-c">
            <th>涉案人数</th>
            <td>{$vo.people_num}</td>
            <th>涉案金额</th>
            <td>{$vo.money}</td>
            <th>当前状态</th>
            <td>{switch name="$vo.state" }
                {case value="1"}<span class="label label-warning">待分配</span>{/case}
                {case value="2"}<span class="label label-success">处理中</span>{/case}
                {case value="3"}<span class="label label-primary">已归档</span>{/case}
                {/switch}</td>
            <th>录入人</th>
            <td>{$vo.input_name}</td>
            <th>录入时间</th>
            <td>{:date('Y-m-d H:i',$vo.create_time)}</td>
        </tr>
        <tr>
            <th class="text-c">图片</th>
            <td colspan="9">
                {volist name ="imgs" id ="img"}
                <span class="img-box"><img src="{$img}" width="100"/></span>
                {/volist}
            </td>
        </tr>
        <tr>
            <th class="text-c">备注</th>
            <td colspan="9">
                {$vo.remark}
            </td>
        </tr>
        </tbody>
    </table>
    <div class="cl pd-5 bg-1 bk-gray mt-5">
        来访人员
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-5">
        <thead>
            <tr class="text-c">
                <th>来访人</th>
                <th>联系电话</th>
                <th>性别</th>
                <th>身份证</th>
                <th width="180">地址</th>
                <th>录入时间</th>
            </tr>
        </thead>
        <tbody>
            {volist name ="case_visitors" id ="v"}
            <tr class="text-c">
                <td>{$v.visitor}</td>
                <td>{$v.mobile}</td>
                <td>{$v.sex|show_sex}</td>
                <td>{$v.idcard}</td>
                <td>{$v.address}</td>
                <td>{:date('Y-m-d H:i',$v.update_time)}</td>
            </tr>
            {/volist}
        </tbody>
    </table>
    <div class="cl pd-5 bg-1 bk-gray mt-5">
        涉案单位
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-5">
        <thead>
        <tr class="text-c">
            <th>公司</th>
            <th>联系人</th>
            <th>联系电话</th>
            <th>性别</th>
            <th width="180">地址</th>
            <th>录入时间</th>
        </tr>
        </thead>
        <tbody>
        {volist name ="case_company" id ="v"}
        <tr class="text-c">
            <td>{$v.company}</td>
            <td>{$v.lxr}</td>
            <td>{$v.mobile}</td>
            <td>{$v.sex|show_sex}</td>
            <td>{$v.address}</td>
            <td>{:date('Y-m-d H:i',$v.update_time)}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="cl pd-5 bg-1 bk-gray mt-5">
        处理结果
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-5">
        <thead>
        <tr class="text-c">
            <th>分配人</th>
            <th>分配时间</th>
            <th>处理人</th>
            <th>状态</th>
            <th>回复时间</th>
            <th width="280">处理结果</th>
        </tr>
        </thead>
        <tbody>
        {volist name ="case_allot" id ="v"}
        <tr class="text-c">
            <td>{$v.from_name}</td>
            <td>{:date('Y-m-d H:i',$v.create_time)}</td>
            <td>{$v.to_name}</td>
            <td>
                {switch name="$v.status" }
                {case value="1"}<span class="label label-primary">进行中</span>{/case}
                {case value="2"}<span class="label label-success">成功</span>{/case}
                {case value="3"}<span class="label label-warning">失败</span>{/case}
                {/switch}
            </td>
            <td>{$v.result_time>0?date('Y-m-d H:i',$v.result_time):''}</td>
            <td><textarea style="width:100%; height:30px;" readonly>{$v.result_info}</textarea></td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
{/block}
